<template>
  <div>
    <i-frame :src="reportUrl" />
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { getToken } from '@/utils/auth'
import iFrame from '@/components/iFrame/index'

// 兼容 Vite 的环境变量写法（如果你还用 webpack，可以改回 process.env）
const baseApi = import.meta.env.VITE_APP_BASE_API
const token = getToken()
const reportUrl = ref(`${baseApi}/jmreport/list?token=Bearer ${token}`)
</script>

<script>
export default {
  name: 'PyJeecgReport',
  components: { iFrame }
}
</script>
